package com.im.common.enums.command;


/**
 * 媒体事件命令枚举
 */
public enum MediaEventCommand implements Command {

    CALL_VOICE(6000, "向对方拨打语音"),
    CALL_VIDEO(6001, "向对方拨打视频"),
    ACCEPT_CALL(6002, "同意请求"),
    HANG_UP(6006, "挂断"),
    REJECT_CALL(6007, "拒绝"),
    CANCEL_CALL(6008, "取消呼叫");

    private Integer command;
    private String desc;

    /**
     * 构造函数
     *
     * @param command 命令值
     * @param desc    命令描述
     */
    MediaEventCommand(int command, String desc) {
        this.command = command;
        this.desc = desc;
    }

    /**
     * 获取命令值
     *
     * @return 命令值
     */
    @Override
    public int getCommand() {
        return command;
    }

    /**
     * 获取命令描述
     *
     * @return 命令描述
     */
    public String getDesc() {
        return desc;
    }
}